<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
        </script>
        <script>
            $(document).ready(function(){
            $("p").click(function(){
                $(this).hide();
                });
            });
        </script>
    </head>
    <body>
        <?php
        $server='localhost';
        $username='root';
        $password='1234';
        $conn=  mysql_connect($server, $username, $password);
        if ($conn){
            echo 'successful';
        }
        else {
            echo 'failed';
            die('Could not connect: '.mysql_error($conn));
        }
        $query="select version();";
        echo "</br>";
        $res=mysql_query($query);
        while($row = mysql_fetch_array($res)){
            echo '<p style="color:blue; text-align:center">'.$row['version()'].'</p>';
        }
        $query1="select curtime();";
        echo "</br>";
        $res1=mysql_query($query1);
        while($row = mysql_fetch_array($res1)){
            echo '<p style="color:blue; text-align:center">'.$row['curtime()'].'</p>';
        }
        mysql_close($conn);
        ?>
        <?php
        require  './checkbox.php';
        $A=  mktime(7, 59, 59, 1, 1, 1970);
        echo $A;
        if (mail("jiangkai@gmail.com", "phptest", "phptest send from php localhost")){
            echo 'mail has been send';
            
        }else{
            echo 'failed';
        }
        mai
        ?>
    </body>
</html>
